home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_300 / 376_04 / os2tool.003 / TRADDEMO.BAT < prev    next >
Encoding:
DOS Batch File  |  1992-09-01  |  1.7 KB  |  51 lines

  1. @clear
  2. @echo  
  3. @echo Traditional tools.
  4. @echo  
  5. @echo This category consists of old common UNIX tools.
  6. @echo This demonstration program assumes that the file DEMOTEST.TXT
  7. @echo resides in the default directory C:\BINB. If you have changed
  8. @echo the installation directory, you must end this program with CONTROL-C
  9. @echo and manually edit the desired directory.
  10. @echo  
  11. @echo HEAD is used to show the beginning first few lines from afile.
  12. @echo TAIL is used to show the last few lines.
  13. @echo PG is used to display a file page by page.
  14. @echo PR is used to print a file with header information.
  15. @echo touch is used to change the last modification date of a file.
  16. @echo It is mainly used with a MAKE-type of a tool in program
  17. @echo development.
  18. @echo STRINGS is used to show all printable strings from a binary file.
  19. @echo WORDS is used to count characters, words and lines.
  20. @echo EXAPLE:
  21. @echo If you want to see the 5 first lines from the file demotest.txt, type:
  22. @echo head -5 c:\BINB\demotest.txt
  23. @pause
  24. head -5 c:\BINB\demotest.txt
  25. @pause
  26. @echo To see the 10 last lines type:
  27. @echo tail -10 c:\BINB\demotest.txt
  28. @pause
  29. tail -10 c:\BINB\demotest.txt
  30. @pause
  31. @echo To see the file page by page, type (it is so small that it fits into 1 page)
  32. @echo pg c:\BINB\demotest.txt
  33. @pause
  34. pg c:\BINB\demotest.txt
  35. @pause
  36. @pause To see it with header information, type:
  37. @echo pr c:\BINB\demotest.txt
  38. @pause
  39. pr c:\BINB\demotest.txt
  40. @pause
  41. @echo To count the characters, words and lines in it, type:
  42. @echo words c:\BINB\demotest.txt
  43. @pause
  44. words c:\BINB\demotest.txt
  45. @echo We don't run the STRINGS or TOUCH command here.
  46. @echo That's all for traditional tools.
  47. @pause
  48.  
  49.  
  50.  
  51.